<?php 
/* SVN FILE: $Id$ */
/* TisStat Test cases generated on: 2009-05-30 23:05:33 : 1243741233*/
App::import('Model', 'TisStat');

class TisStatTestCase extends CakeTestCase {
	var $TisStat = null;
	var $fixtures = array('app.tis_stat');

	function startTest() {
		$this->TisStat =& ClassRegistry::init('TisStat');
	}

	function testTisStatInstance() {
		$this->assertTrue(is_a($this->TisStat, 'TisStat'));
	}

	function testTisStatFind() {
		$this->TisStat->recursive = -1;
		$results = $this->TisStat->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TisStat' => array(
			'id'  => 1,
			'access_time'  => '2009-05-30 23:40:33',
			'ip_address'  => 'Lorem ipsum d',
			'visit_times'  => 1,
			'browser'  => 'Lorem ipsum dolor sit amet',
			'system'  => 'Lorem ipsum dolor ',
			'language'  => 'Lorem ipsum dolor ',
			'area'  => 'Lorem ipsum dolor sit amet',
			'referer_domain'  => 'Lorem ipsum dolor sit amet',
			'referer_path'  => 'Lorem ipsum dolor sit amet',
			'access_url'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>